#include <iostream>

using namespace std;

int main()
{
  int a = 20;
  cout << (a << 1) << endl; // multiplica
  cout << (a >> 1) << endl; // divide
  
  cout << (a ^ 2) << endl;
  cout << (a & 2) << endl;
  cout << (a | 34) << endl;

  cout << (a << 1 | 1) << endl;
}
